<?php
set_time_limit(0);
$fetch = '"C:\Program Files\Git\cmd\git.exe" fetch --all';
$reset = '"C:\Program Files\Git\cmd\git.exe" reset --hard origin/master';
//exec($fetch);
//exec($reset);
$pull = '"C:\Program Files\Git\cmd\git.exe" pull 2>&1';
exec($pull,$out);
foreach($out as $v){
    echo iconv( 'GB2312','UTF-8', $v)."<br>";
}


